//package com.niiwoo.civet.trade.service.local.newRefund.notify.mq;
//
//import org.springframework.stereotype.Component;
//
//import com.niiwoo.asset.huijie.dto.response.HuiJieRefundNotifyDTO;
//import com.niiwoo.civet.trade.dao.entity.RefundNotifyRecord;
//import com.niiwoo.civet.trade.service.local.newRefund.notify.dto.RefundNotifyDTO;
//import com.niiwoo.civet.trade.service.local.newRefund.notify.enums.RefundNotifyEnum;
//import com.niiwoo.civet.trade.service.local.newRefund.notify.enums.RefundNotifyRefundStatusEnum;
//
///**
// * 汇介还款结果通知
// *
// * 触发条件：用户还款成功、还款失败
// *
// * @author: kevin.jia
// * @version 1.0.0
// */
//@Component
//public class HuijieRefundResuleNotify extends MQRefundNotify {
//
//	@Override
//	public Object bulidParam(RefundNotifyDTO refundNotifyDTO) {
//		RefundNotifyRecord refundNotifyRecord = refundNotifyDTO.getRefundNotifyRecord();
//		HuiJieRefundNotifyDTO huiJieRefundNotifyDTO = new HuiJieRefundNotifyDTO();
//		huiJieRefundNotifyDTO.setRequestNo(refundNotifyRecord.getOrgRequestNo());
//		if (RefundNotifyRefundStatusEnum.REPAYMENT_FINISH.getStatus().equals(refundNotifyRecord.getRefundStatus())) {
//			huiJieRefundNotifyDTO.setResult("0000");
//		} else if (RefundNotifyRefundStatusEnum.REPAPYMENT_FAIL.getStatus().equals(refundNotifyRecord.getRefundStatus())) {
//			huiJieRefundNotifyDTO.setResult("-1"); // 失败默认CODE
//			huiJieRefundNotifyDTO.setMessage(refundNotifyRecord.getRefundMessage());
//		} else {
//			return null;
//		}
//		return huiJieRefundNotifyDTO;
//	}
//
//	@Override
//	public RefundNotifyEnum getType() {
//		return RefundNotifyEnum.Huijie_REFUND_RESULE;
//	}
//}